<?php

include_once '../lib/personsql.php';

$db = new PGSQLConnector('u_superuser');

$dayRange = range(1,31);
$monthRange = range(1,12);
$yearRange = range(1970,getYear());  

$template = newPage('personalinfo');
$template->title = 'Personal Info - IAESTE Application System';
isset($_SESSION['personal']) ? $template->person = $_SESSION['personal'] : $person;
$template->day = $dayRange;
$template->month = $monthRange;
$template->year = $yearRange;
$template->l = $l;

try {
    echo $template->execute();
} catch (Exception $e) {
    echo $e;
}
?>
